﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication2
{
    class Triangle : CalculateArea
    {

        private double bottom;
        private double height;

        public override double Area()
        {
            return bottom * height / 2;
        }

        public void SetBottom(double bottom)
        {
            this.bottom = bottom;
        }
        public void SetHeight(double height)
        {
            this.height = height;
        }
        public double GetBottom()
        {
            return bottom;
        }

        public double GetHeight()
        {
            return height;
        }



    }
}
